package com.zwr.sheller.customer.Service;

import com.zwr.sheller.core.common.WDMBusinessException;
import com.zwr.sheller.core.pojo.Address;
import com.zwr.sheller.core.service.BaseService;
import com.zwr.sheller.core.service.impl.BaseServiceImpl;

import java.util.List;
import java.util.Map;

/**
 *
 *@author Kang
 *@date
 */
public interface AddressService extends BaseService<Address> {

    /**
     * 添加收货地址
     * @param address
     * @return
     */
    Integer add(Address address);

    /**
     * 删除收货地址
     * @param id
     * @return
     */
    Integer delete(Long id);

    /**
     * 展示所有收货地址
     * @param id
     * @return
     */
    Map<String,Object> selectAll(Long id);

    /**
     * 修改收货地址
     * @param address
     * @return
     */
    Integer update(Address address);

    List<Address> selectAddressByUserId(Long userId) throws WDMBusinessException;
}
